@(info: Option[Any])(implicit context: gitbucket.core.controller.Context)
<label class="strong">Plugin repositories</label>
<fieldset>
  <label class="checkbox">
    <input type="checkbox" id="pluginNetworkInstall" name="pluginNetworkInstall"@if(context.settings.pluginNetworkInstall){ checked} />
    <a href="https://plugins.gitbucket-community.org" target="_blank">plugins.gitbucket-community.org</a>
  </label>
</fieldset>
<hr>
<fieldset>
  <label class="checkbox">
    <input type="checkbox" id="useProxy" name="useProxy"@if(context.settings.pluginProxy.isDefined){ checked} />
    Use proxy
  </label>
</fieldset>
<div class="proxy">
  <div class="form-group">
    <label class="control-label col-md-2" for="proxyHost">Proxy host</label>
    <div class="col-md-10">
      <input type="text" id="proxyHost" name="proxy.host" class="form-control" value="@context.settings.pluginProxy.map(_.host)"/>
      <span id="error-proxy_host" class="error"></span>
    </div>
  </div>
  <div class="form-group">
    <label class="control-label col-md-2" for="proxyPort">Proxy port</label>
    <div class="col-md-10">
      <input type="text" id="proxyPort" name="proxy.port" class="form-control input-mini" value="@context.settings.pluginProxy.map(_.port)"/>
      <span id="error-proxy_port" class="error"></span>
    </div>
  </div>
  <div class="form-group">
    <label class="control-label col-md-2" for="proxyUser">Proxy user</label>
    <div class="col-md-10">
      <input type="text" id="proxyUser" name="proxy.user" class="form-control" value="@context.settings.pluginProxy.map(_.user)"/>
      <span id="error-proxy_user" class="error"></span>
    </div>
  </div>
  <div class="form-group">
    <label class="control-label col-md-2" for="proxyPassword">Proxy password</label>
    <div class="col-md-10">
      <input type="password" id="proxyPassword" name="proxy.password" class="form-control" value="@context.settings.pluginProxy.map(_.password)"/>
      <span id="error-proxy_password" class="error"></span>
    </div>
  </div>
</div>
<script>
$(function(){
  $('#useProxy').change(function(){
    $('.proxy input').prop('disabled', !$(this).prop('checked'));
  }).change();
});
</script>
